﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using BussinesLayer;
using ServerDataObject;

namespace WcfService
{
    public class Service : IService
    {
        readonly Storage storage = new Storage();

        public List<ChallengeShort> GetChallengeList(ChallengeFiler filter)
        {
            return storage.GetChallengeList(filter);
        }

        public Challenge GetChallenge(Guid id)
        {
            return storage.GetChallenge(id);
        }
    }
}
